package cate.common.table.activity.destinygate.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.destinygate.row.DestinyGateChapterRow;
import cate.common.table.activity.destinygate.row.DestinyGateGiftConditionRow;

import java.util.ArrayList;
import java.util.List;

public class DestinyGateGiftConditionSheet extends ESheet<DestinyGateGiftConditionRow> {
    @Override
    public String getSheetName() {
        return "购买次数";
    }

    public List<DestinyGateGiftConditionRow> showConditionRow(int giftId) {
        List<DestinyGateGiftConditionRow> rows = new ArrayList<>();
        for (DestinyGateGiftConditionRow row : this.list) {
            if (row.giftId == giftId) {
                rows.add(row);
            }
        }
        return rows;
    }
}
